package com.yyge.controller.articleType.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Map;

/**
 * @program: js-hd
 * @description: 文章分类修改接收对象
 * @author: yyf
 * @create: 2024-01-25 09:49
 **/
@Data
@ApiModel(value = "文章类型修改接收对象",description = "文章类型修改接收对象")
public class ArticleTypeEditReq implements Serializable {

    @ApiModelProperty(value = "文章分类ID")
    @NotEmpty(message = "文章分类ID不能为空")
    private Long id;

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    @NotBlank(message = "分类名称不能为空")
    @Size(max = 20,min = 2,message = "分类名称不合规")
    private String  name;

    private Map<String, Object> params;
    private static final long serialVersionUID = 1L;
}
